﻿namespace eCommerce.db
{
    public class Constant
    {
        #region ConnectionString

        public static string MainConnection             = "MainConnectionString";
        public static string MainConnection_OldSystem   = "MainConnectionString_Online";

        public static string IsAdministrator = "eCommerce.admin";

        #endregion

        public static string TableComment       = "Comment";
        public static string TableDiscount      = "Discount";
        public static string TableExpense       = "Expense";
        public static string TableArticle       = "Article";
        public static string TableProduct       = "Product";
        public static string TableOrder         = "Order";
        public static string TableOrderDetail   = "OrderDetail";
        public static string TableCustomer      = "Customer";
        public static string TableIe            = "Ie";
        public static string TableIeDetail      = "IeDetail";

        public static string AllFieldList      = "*";
        public static string ArticleFieldList  = "ArticleId, CategoryId, Title, PublishOn, ImgAvatar, Status, Url, Sapo";
        public static string ProductFieldList  = "ProductId, CategoryId, Code, Name, Description, UnitPrice, Status, ImagePath";
        public static string OrderFieldList    = "OrderId, CustomerId, Status, TotalValue, OrderDate, RequiredDate, Note";
        public static string CustomerFieldList = "CustomerId, StoreId, ContactName, Mobile, Email, Address, Description, EditedOn, IsActive";

        public static string ThumbImage = "<img src='{0}/Thumb.ashx?imgPath={1}&tId={2}&size={3}' alt=''/>";

        public static int Warehouse = 1; // Important

        public static int TopArticle    = 2;
        public static int TopDiscount   = 16;
        public static int TopLastest    = 16;
        public static int PageIndex     = 1;
        public static int LittlePageSize = 4;
        public static int SmallPageSize = 10;
        public static int PageSize      = 15;
        public static int LargePageSize = 50;
        public static int PageStep      = 5;
        public static int Root          = 0;

        public static int ParentRoot = 0;
        public static int NotActive  = 0;
        public static int Active     = 1;
    }
}
